<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>ajax</title>
    </head>
    <body>
        <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
        <script>
            let body = {
                key1: 1,
                key2: 2
            };

            $.ajax({
                type: 'post',
                contentType: 'application/json',
                url: 'https://ww.sogou.com/abc.html',
                data: JSON.stringify(body),
                success: function(body){
                    console.log(body);
                }
            });
        </script>
    </body>
</html>